package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.service.IAgencyCertificationAuditService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 机构认证审核表 前端控制器
 * </p>
 *
 * @author jianghaijun
 * @since 2025-10-23
 */
@Api(tags = "机构端 - 服务认证相关接口")
@RestController("agencyAgencyCertificationAudit")
@RequestMapping("/agency/agency-certification-audit")
public class AgencyCertificationAuditController {
    @Resource
    private IAgencyCertificationAuditService agencyCertificationAuditService;

    @ApiOperation("提交认证申请")
    @PostMapping
    public void agencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO) {
        agencyCertificationAuditService.submit(agencyCertificationAuditAddReqDTO);
    }

    @ApiOperation("查询最新的驳回原因")
    @GetMapping("/rejectReason")
    public String rejectReason() {
        return agencyCertificationAuditService.rejectReason();
    }


}
